package com.youkeyi.ddy.cloud.common.api.basic.pub.annex.type;


import com.youkeyi.ddy.cloud.common.api.basic.pub.annex.type.dto.PublicAnnexTypeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.annex.type.param.PublicAnnexTypeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.annex.type.param.PublicAnnexTypeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.annex.type.param.PublicAnnexTypeQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.annex.type.param.PublicAnnexTypeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicAnnexTypeCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 2:27 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/annex/type/fallback")
public class PublicAnnexTypeCloudServiceFallback implements PublicAnnexTypeCloudService {

    @Override
    public PublicAnnexTypeListCloudDto query(PublicAnnexTypeQueryCloudParam param) {
        return new PublicAnnexTypeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicAnnexTypeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicAnnexTypeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicAnnexTypeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
